package com.stars.entity.sys;

import com.stars.common.base.BaseUUID;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 *资源关联信息
 */
@Data
@Table(name = "SYSTEM_PERMISSION_RELATION")
public class SystemPermissionRelation extends BaseUUID {
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空!")
    @Column(name = "PER_ROLE_ID")
    private String perRoleId;

    /**
     * 资源表id
     */
    @NotNull(message = "资源表id不能为空!")
    @Column(name = "PER_ID")
    private String perId;


}